﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TwoPageView3 {
    class TpvDirectoryInfoFactory {
        public static ITpvDirectoryInfo Factory(string path) {
            if (File.Exists(path) && path.EndsWith(".pdf", true, CultureInfo.CurrentCulture)) {
                return TpvPdfDirectoryInfo.Factory(path);
            }
            return TpvDirectoryInfo.Factory(path);
        }
    }
}
